package org.example.school.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.school.entity.Students;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.school.model.dto.StudentProfileDTO;

/**
 * <p>
 * 学生基本信息表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-09-28
 */
public interface StudentsMapper extends BaseMapper<Students> {
    /**
     * 根据用户ID连接查询学生、班级、用户信息
     * @param userId 用户ID
     * @return 学生档案DTO
     */
    StudentProfileDTO getStudentProfileByUserId(@Param("userId") Long userId);

}
